package org.ajc.gift.clients;


import org.ajc.gift.clients.fallback.AuthClientFallback;
import org.ajc.gift.domain.LoginUser;
import org.ajc.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 这是授权中心提供对外服务来调用的接口,需要的服务导入依赖调用接口即可
 */
@FeignClient(value = "gift-auth", fallback = AuthClientFallback.class)
public interface AuthClient {

    @PutMapping("/loginUser")
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);
}
